/*
 * Column.java
 *
 * Created on 3 settembre 2008, 12.43
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package DBObjects;

/**
 *
 * @author Adriano Aristarco
 */
public class dbColumn {
    
    private String columnName;
    private String columnType;
    
    /** Creates a new instance of Column */
    public dbColumn() {
    }
    
    public dbColumn(String columnName, String columnType) {
        this.setColumnName(columnName);
        this.setColumnType(columnType);
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getColumnType() {
        return columnType;
    }

    public void setColumnType(String columnType) {
        this.columnType = columnType;
    }
    
    @Override
    public boolean equals (Object obj)
    {
        if (this.hashCode() == obj.hashCode())
            return true;
        else
            return false;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.columnName != null ? this.columnName.hashCode() : 0);
        hash = 37 * hash + (this.columnType != null ? this.columnType.hashCode() : 0);
        return hash;
    }
}
